/*****************************************************************************//*!
* file  : image common.c
* data  : 2017/11/05
*******************************************************************************/
#include "img_info.h"
#include "./img/c_file/bmp_c_src.h"
#include "pincfg.h"
#include "mytype.h"
#include "sys_init.h"


uint8_t img_lib_err_check(void)
{
    uint16_t index;
    
    for(index=0;index<=FONT_POS_ASCII_END;index++)
    {
        if(inpw(font_list_address + 4 * index) < img_flash_address_start)
            return 1;
        
        if(inpw(font_list_address + 4 * index) >= (img_flash_address_start + img_flash_size))
            return 1;
    }
    /*
    for(index=0;index<=IMG_POS_END;index++)
    {
        if(inpw(img_list_address + 4 * index) < img_flash_address_start)
            return 1;
        
        if(inpw(img_list_address + 4 * index) >= (img_flash_address_start + img_flash_size))
            return 1;
    }
    */
    return 0;
}


